import java.util.Arrays;

public class Arry {
    public static void transForm(int[] arr) {
        for(int i = 0; i < arr.length ; i++) {
            arr[i] *= 2;
        }
    }
    public static void main(String[] args) {
        int[] arr = {2,3,4,5,6};
        System.out.println("变大前："+ Arrays.toString(arr));
        transForm(arr);
        System.out.println("变大后："+ Arrays.toString(arr));
    }
}
